import { initState } from "./initState";

export default function initMixin(Vue) {
    Vue.prototype._init = function(options) {
       const vm = this;
       this.$options = options;
       initState(vm);
    //    挂载
       if(vm.$options.el) {
        vm.$mount(vm.$options.el);
       }
    }

    Vue.prototype.$mount = function(el) {
        const vm = this;
        el = document.querySelector(el);
        console.log(el);
        const opts = vm.$options;
        if(!opts.render) {
            
        }
    }
}